from tkinter import *
root = Tk()
root.title ('ИТ марафон')
root.geometry('500x500')
canvas = Canvas (bg = 'grey', width = 500, height = 500)
canvas.pack(anchor = CENTER, expand = 1)
coords = [0, 0, 10, 0, 10, 10, 20, 10, 20, 20, 20, 30, 10, 30, 10, 20, 0, 20, 0, 10, 0, 0]
print('введите x')
x = int(input())
print('введите y')
y = int(input())
print('введите N')
N = int(input())
if max(coords) * N > 500 or max(coords) * N > 500:
    print('Размер фигуры превышает максимальный размер поля')
else:
    coords[0] = coords[0] + x
    coords[1] = coords[1] + y
    coords[2] = coords[2] + x
    coords[3] = coords[3] + y
    coords[4] = coords[4] + x
    coords[5] = coords[5] + y
    coords[6] = coords[6] + x
    coords[7] = coords[7] + y
    coords[8] = coords[8] + x
    coords[9] = coords[9] + y
    coords[10] = coords[10] + x
    coords[11] = coords[11] + y
    coords[12] = coords[12] + x
    coords[13] = coords[13] + y
    coords[14] = coords[14] + x
    coords[15] = coords[15] + y
    coords[16] = coords[16] + x
    coords[17] = coords[17] + y
    coords[18] = coords[18] + x
    coords[19] = coords[19] + y
    coords[20] = coords[20] + x
    coords[21] = coords[21] + y
    canvas.create_polygon(coords[0] * N, coords[1] * N,
                          coords[2] * N, coords[3] * N,
                          coords[4] * N, coords[5] * N,
                          coords[6] * N, coords[7] * N,
                          coords[8] * N, coords[9] * N,
                          coords[10] * N, coords[11] * N,
                          coords[12] * N, coords[13] * N,
                          coords[14] * N, coords[15] * N,
                          coords[16] * N, coords[17] * N,
                          coords[18] * N, coords[19] * N,
                          coords[20] * N, coords[21] * N)                  
    root.mainloop()
